package com.zl.aop;

import com.zl.aop.service.IService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ZLL
 * @date create in 2018/05/09
 */
public class Main2 {

    public static void main(String[] args) {

        ApplicationContext ac = new ClassPathXmlApplicationContext("spring2.xml");

        IService bean = ac.getBean(IService.class);

        bean.sayHello2("wangnima2");

        System.out.println("<>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<");

        bean.sayHello2("1");
    }
}
